package com.xbw.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.xbw.bean.Bis_Shop;
import com.xbw.mapper.Bis_ShopMapper;
import com.zsy.bean.Bis_Shop_User;

@Service
@Transactional
public class ShopServiceImpl implements ShopService{
    
	@Autowired
	private Bis_ShopMapper bsm;

	@Override
	public List<Bis_Shop> listAll(Map map) {
		return bsm.listAll(map);
	}
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public Bis_Shop getByShop_id(String shop_id) {
		return bsm.getByShop_id(shop_id);
	}
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public List<Bis_Shop_User> getshopuser(Map map) {
		return  bsm.getshopuser(map);
	}
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void insert(Bis_Shop_User shopuser) {
            bsm.insert(shopuser);		
	}
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void update(Bis_Shop_User shopuser) {
		bsm.update(shopuser);
		
	}
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void updatetype(String id) {
        bsm.updatetype(id);		
	}
	@Override
	public void save(Bis_Shop bs) {
		bsm.save(bs);
		
	}
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void editshop(Bis_Shop bs) {
             bsm.editshop(bs);	
	}
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void delete(String id) {
            bsm.delete(id);		
	}
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void pas(Map map) {
		bsm.pas(map);
		
	}
	@Override
	public boolean getinformation(Map map) {
		int count=bsm.getinformation(map);
		if(count==0){
			return  true;
		}else{
			return  false;	
		}
		
	}
	
}
